package com.huixiaodian.ft_user.service;

import com.huixiaodian.baselibrary.ft_user.model.HXDUser;
import com.huixiaodian.ft_user.common.Path;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;

public interface LoginService {

    @POST(Path.send_phone_code_path)
    Call<ResponseBody> sendPhoneCode(@Body String phone);

    @POST(Path.login_path1)
    Call<HXDUser> loginStyle1(@Body String phone, @Body String code,
                              @Body String deviceToken, @Header("cookie") String cookie);

    @POST(Path.login_path2)
    Call<ResponseBody> loginStyle2(@Body String userPhone, @Body String password);

    @POST(Path.login_password_add_path)
    Call<ResponseBody> addLoginPassword(@Body String password, @Header("cookie") String cookie);

    @POST(Path.login_password_modify_path)
    Call<ResponseBody> modifyLoginPassword(@Body String oldPassword, @Body String newPassword, @Header("cookie") String cookie);

    @POST(Path.login_path2)
    Call<ResponseBody> nickNameSet(@Body String nickName, @Header("Cookie") String cookie);

}
